package org.qf.cloudorders.service;

import org.qf.cloudentity.entity.Jifen;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 远程调用积分服务API的接口
 */

@FeignClient("cloud-jifen")
@RequestMapping("jifen")
public interface JifenApi {

    // 保存积分的接口
    @PostMapping(value = "/save")
    Map save(@RequestBody Jifen jifen);

}
